home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1766 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: news2.acs.oakland.edu!mjkamal
  2. From: mjkamal@vela.acs.oakland.edu (M.J.Kamal)
  3. Newsgroups: comp.lang.c++
  4. Subject: Need some help
  5. Date: 12 Jan 1996 19:56:19 GMT
  6. Organization: Oakland University, Rochester, Michigan, U.S.A.
  7. Distribution: na
  8. Message-ID: <4d6ed3$sri@news2.acs.oakland.edu>
  9. NNTP-Posting-Host: vela.acs.oakland.edu
  10.  
  11. Need help with c++. I'm trying to create a window on the screen and display
  12. everything within it. Here is how the structure of that part of my program looks
  13. like:
  14.  
  15.   window(x1,y1,x2,y2) /* Defines my window in text mode(not graphics) */
  16.   clrscr();    /* Clears screen */
  17.   cout & cin statemenets /* This is where I prompt for keyboard entry */
  18.   cout statement    /* I print something on the screen */
  19.  
  20.  
  21. Problem is, the 1st 'cout' statement prints within my defined window(which is 
  22. smaller than the default one). But the 2nd one prints in the default window
  23. & outside the defined one! The only way I can get it to print in the defined
  24. window is by putting a 'clrscr()' statement before the 2nd 'cout' statement.
  25. I don't want to do that. My reference manual says that once a window is defined
  26. everything should be relative to that window. What is going on? I'm using 
  27. Borland C++ 3.1
  28.  
  29. Thanx in advance.
  30.  
  31. mjkamal@vela.oakland.edu
  32.  
  33.  
  34.  
  35.  
  36.